import request from '@/utils/request'

// 路径封装
export const imgStitching = (array) => {
  return array.map(item => {
    item.houseImg = 'http://124.223.73.204:8080' + item.houseImg
    return item
  })
}
//  /houses?cityId=${'AREA|88cff55c-aaa4-e2e0'}&start=${21}&end=${30}
// 获取房源列表
export const getHouse = (params) => {
  return request({
    url: '/houses',
    params
  })
}

// 获取房屋具体信息
export const getSpecificHouse = (id) => {
  return request(`/houses/${id}`)
}
